package ru.amse.tsyganov.jumleditor.view;

import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Point;

import ru.amse.tsyganov.jumleditor.model.ActivityGraph;
import ru.amse.tsyganov.jumleditor.model.ForkDecision;

public class ForkDecisionView<T extends ForkDecision> extends DecisionView<T> {
	
	public ForkDecisionView(T model, 
			ActivityGraphView<? extends ActivityGraph> activityGraphView) {
		
		super(model, activityGraphView);
	}

	@Override
	public Point getConnectionPoint(Point sourcePoint, boolean in) {
		return super.getConnectionPoint(sourcePoint, !in);
	}

	@Override
	public Color getFillColor() {
		return Colors.getGreenColor();
	}
}